<?php echo $this->Section->main(); ?>
<body>
<div class="container_4">

	<div class="grid_1">
		<div class="logo"><?php echo $this->Html->link($this->Html->image(HOST.'/seo.pzco.logo.png'),'/',array('escape'=>false));?></a></div>
	</div>

	<?php echo $this->element('aktualnosci-promocje')?>
	
	<div class="grid_3">
		
	</div>
	
	<div class="clear"> </div>
	
	<div class="grid_4">
		<?php echo $this->element('menu-top')?>
		<div class="clear"> </div>
	</div>
		
	<div class="clear"> </div>
	
	<div class="grid_4 header">
		<?php echo $this->element('baner')?>
		<div class="clear"> </div>
	</div>	
	<div class="clear"> </div>
	

	<div class="content">
		<div class="grid_1 white">
			<div class="left-text-content"><?php echo $this->Section->generate(3);?>&nbsp;</div>
			<div class="clear"> </div>
		</div>
			
		<div class="grid_3 white">
			<div class="left-text-content">
			<?php echo $this->Html->css(array(HOST.'/form'),null,array('inline'=>false));?>
			
			<?php if($session->check("Auth.User.id")){?>
			<h2 class="red"><?php __d("store","Logout")?></h2>
			<?php echo $session->read("Auth.User.email")?> | 
			<?php echo $html->link(__d("store","Logout",true),array('plugin'=>false,'controller'=>'users','action'=>'logout'),array('class'=>'button'));?>
			<?php }else{?>
			<h2 class="red"><?php __d("store","Login")?></h2>
			<div class="text-content">
				<?php echo $this->Form->create('User', array('url' => array('controller' => 'users', 'action' =>'login')));?>
				<div class="one-third-col">
						<div class="input text required">
							<label for="senderFirstName">Email</label>
							<input type="text" name="data[User][email]" class="required alpha" value="" />
						</div>
	
					<div class="input text required">
							<label for="senderFirstName">Password</label>
							<input type="password" name="data[User][password]" class="required alpha" value="" />
					</div>
					<?php echo $html->link(__d("store","Forgot your password?",true),array('controller'=>'users','action'=>'new_password',$this->data['User']['id']));?>
					<div id="submit">
					<input type="submit" value="Login"/>
					</div>
				</div>
				<?php echo $this->Form->end();?>
			</div>
			<?php }?>
			</div>
		</div>
		<div class="clear"> </div>
	</div>
	<div class="clear"> </div>
	<?php echo $this->element('footer');?>
		<div class="clear"> </div>
	</div>
	<div class="clear"> </div>
</body>